<template>
  <div>
      <mc-timer @mc-execute="timeout(1)" mcType="setTimeout" :mcMillionSeconds="2000"></mc-timer>
      <mc-timer @mc-execute="interval(1)" mcType="setInterval" :mcMillionSeconds="3000"></mc-timer>
  </div>
</template>

<script>
import McTimer from "./components/McTimer";
export default {
    data(){
      return {
      }
    },
    components:{
      McTimer,
    },
    methods:{
        timeout(a){
          console.log(a)
        },
        interval(a){
          console.log(a)
        }
    }
}
</script>

<style>

</style>
